package edu.sctu.renpingan.day20150517.texttwo;

/**
 * Created by user18 on 2015/5/17.
 */
public class TextMain {
    public static void main(String[] args) {

        TeaChar[] teaChars = new TeaChar[3];

        TeaChar teaChar = new TeaChar();

        teaChar.setTeacharsex("man");
        teaChar.setTeacharjob("教授");
        teaChar.setTeacharclass("Chinese");
        teaChar.setTeacharname("任");
        teaChar.setTeacharnumber(1406);

        teaChars[0] = teaChar;

        TeaChar teaChar1 = new TeaChar();

        teaChar1.setTeacharsex("woman");
        teaChar1.setTeacharjob("副教授");
        teaChar1.setTeacharclass("Chinese");
        teaChar1.setTeacharname("黄");
        teaChar1.setTeacharnumber(1407);

        teaChars[1] = teaChar1;

        TeaChar teaChar2 = new TeaChar();

        teaChar2.setTeacharsex("man");
        teaChar2.setTeacharjob("副教授");
        teaChar2.setTeacharclass("Eglish");
        teaChar2.setTeacharname("李");
        teaChar2.setTeacharnumber(1408);

        teaChars[2] = teaChar2;
        StuDent[] stuDent1 = new StuDent[10];

        for (int j = 0; j <3  ; j++) {
            for (int i = 0; i <10; i++) {

                StuDent stuDent = new StuDent();

                stuDent.setAdress("China");
                stuDent.setAge(20+i);
                stuDent.setGrade(70+i);
                stuDent.setName("张三"+i);
                stuDent.setNumber(5101+i);
                stuDent1[i] = stuDent;

                teaChar.stuDent[j] = stuDent1[10];
            }
        }
        TextOne textOne = new TextOne(teaChars);
        textOne.getTeaCherInfo();
    }
}
